using SqlSugar;
using IM.Easy.Core.Audit;

namespace IM.Easy.Entity.System
{
    /// <summary>
    /// 系统参数表
    /// </summary>
    [SugarTable("SysParams")]
    public class Params
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
        public long Id { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [SugarColumn(ColumnName = "Name")]
        public string Name { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "Remark")]
        public string? Remark { get; set; }

        /// <summary>
        /// 键值
        /// </summary>
        [SugarColumn(ColumnName = "Value")]
        public string? Value { get; set; }

        /// <summary>
        /// 系统内置标识
        /// </summary>
        [SugarColumn(ColumnName = "IsSystem")]
        public bool IsSystem { get; set; }

        /// <summary>
        /// 键名
        /// </summary>
        [SugarColumn(ColumnName = "Key")]
        public string Key { get; set; }

    }
}
